import {
    http,
    api,
    httpService
} from '@/common/http/index.js';
import qs from 'qs';

//查询骑手信息
export const queryHorsemanInfo = (params = {}) => {
    return http.post(api.queryHorsemanInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//删除骑手信息
export const deleteHorsemanInfo = (params = {}) => {
    return http.post(api.deleteHorsemanInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//启用/停用骑手信息
export const editHorsemanStatus = (params = {}) => {
    return http.post(api.editHorsemanStatus, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//根据门店名称模糊匹配门店信息
export const findStoreInfoByStoreName = (params = {}) => {
    return http.post(api.findStoreInfoByStoreName, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//添加骑手信息
export const addHorsemanInfo = (params = {}) => {
    return http.post(api.addHorsemanInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
//修改骑手信息
export const updateHorsemanInfo = (params = {}) => {
    return http.post(api.updateHorsemanInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
